/**
 * 
 */
package com.xpec.c4.game.login.async2;

import com.xpec.c4.game.login.LoginModule;
import com.xpec.c4.game.utility.GUID;
import com.xpec.c4.message.login.CUpdateLastLockPlayerAndDeviceTokenRequest;

/**
 * @author TW15010
 *
 */
public class UpdateLockPlayerAndDeviceTokenGetAccountAsync extends DoAfterLoadAccountAsync {
	private CUpdateLastLockPlayerAndDeviceTokenRequest request;

	private GUID sessionID;

	@Override
	public void execute() throws Exception {
		LoginModule module = (LoginModule) getCurrentModuleServer();

		if (module != null && sessionID != null && getLoadAccountId() != null) {
			module.updateLockPlayerAndDeviceToken(request, sessionID, getLoadAccountId(), getLoadAccount());
		}
	}

	public void setRequest(CUpdateLastLockPlayerAndDeviceTokenRequest request) {
		this.request = request;
	}

	public void setSessionID(GUID sessionID) {
		this.sessionID = sessionID;
	}
}
